 
package com.xbongbong.admin.domain.entity;

import com.xbongbong.paas.domain.entity.PaasPrintTemplateEntity;
import com.xbongbong.paas.toolbox.wrap.Entity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
* @author autoGen
* @time 2018-08-13 10:43:26
*/
@Setter
@Getter
@ToString
public class PaasPrintTemplateRetainEntity extends Entity {

	/** Comment for <code>serialVersionUID</code> */
	private static final long serialVersionUID = -4968930413341036363L;

	//========== properties ==========

	/**
	* 主键
	*/
	private Long id;
	/**
	* 提交该应用的公司id，若为0则为本公司(逍邦网络)维护的应用模板
	*/
	private String corpid;
	/**
	 * 备份应用id
	 */
	private Long retainAppId;
	/**
	 * 原应用id
	 */
	private Long sourceAppId;
	/**
	 * 原菜单id
	 */
	private Long sourceMenuId;
	/**
	 * 原表单id
	 */
	private Long sourceFormId;
	/**
	 * 原打印模板的id
	 */
	private Long sourcePrintTemplateId;
	/**
	* 打印模板名称
	*/
	private String name;
	/**
	* 是否为当前启用模板（1是，0否）
	*/
	private Integer enable;
	/**
	* 前端传过来的页面信息
	*/
	private String html;
	/**
	* 一些打印配置信息如"间距"，json格式
	*/
	private String configInfo;
    /**
     * 业务类型
     */
	private Integer businessType;

	/**
	* 创建者id
	*/
	private String creatorId;
	/**
	* 创建时间时间戳
	*/
	private Long addTime;
	/**
	* 更新时间时间戳
	*/
	private Long updateTime;
	/**
	* 删除标记
	*/
	private Integer del;

	public PaasPrintTemplateRetainEntity(){
		del = 0;
	}

	public PaasPrintTemplateRetainEntity(PaasPrintTemplateEntity paasPrintTemplateEntity) {
		this.corpid = paasPrintTemplateEntity.getCorpid();
		this.sourceAppId = paasPrintTemplateEntity.getAppId();
		this.sourceMenuId = paasPrintTemplateEntity.getMenuId();
		this.sourceFormId = paasPrintTemplateEntity.getFormId();
		this.sourcePrintTemplateId = paasPrintTemplateEntity.getId();
		this.name = paasPrintTemplateEntity.getName();
		this.enable = paasPrintTemplateEntity.getEnable();
		this.html = paasPrintTemplateEntity.getHtml();
		this.configInfo = paasPrintTemplateEntity.getConfigInfo();
		this.businessType = paasPrintTemplateEntity.getBusinessType();
		this.creatorId = paasPrintTemplateEntity.getCreatorId();
		this.addTime = paasPrintTemplateEntity.getAddTime();
		this.updateTime = paasPrintTemplateEntity.getUpdateTime();
		this.del = paasPrintTemplateEntity.getDel();
	}
}

